package com.yxzx.vod.util;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;

/**
 * Copyright (C), 2018-2020
 * FileName: AliyunVODSDKUtils
 * Author:   kongfanyu
 * Date:     2020/8/13 11:18
 */
public class AliyunVODSDKUtils {

    //账号AccessKey信息请填写(必选)
    public static String access_key_id = "LTAI4G5zUBnqt1bhm3LLu5Mi";
    //账号AccessKey信息请填写(必选)
    public static String access_key_secret = "gcjdjTxXHmUSWLXu1SoFgonXGH2m2k";
    public static String vedio_id = "d079f26c656345c49f2ff99b04cb2725";
    /**
     * @Description 初始化方法
     * @Since: 1.0.0
     * @Author:kongfanyu
     * @Date:  2020/8/13 11:19
     * @return:com.aliyuncs.DefaultAcsClient
     */
    public static DefaultAcsClient initVodClient() {
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, access_key_id, access_key_secret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
